import {onMessage, sendMessage} from 'webext-bridge'


onMessage('test', ({data}) => {
  console.log(data)
  return data
})


chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {

  console.log(message, sender, sendResponse);

  chrome.runtime.sendMessage(message)

  chrome.tabs.sendMessage(message.tabId, message)
})


console.log("-------------------")
